package com.wholeintech;

import android.app.Application;
import android.content.Intent;

import com.wholeintech.ble.BleService;
import com.wholeintech.utils.LogUtils;
import com.wholeintech.wirednet.WiredNetService;
import com.wholeintech.zigbee.gw.ZigBeeService;
import com.wholeintech.utils.CrashExceptionUtils;

public class HWApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        LogUtils.isDebug = true;
        CrashExceptionUtils.getInstance().init(this, ZigBeeService.class, "ZigBeeService");
        //zigbee服务
        Intent intent = new Intent(this, ZigBeeService.class);
        startService(intent);

        //蓝牙服务
        intent = new Intent(this, BleService.class);
        startService(intent);

        //有线网服务
        intent = new Intent(this, WiredNetService.class);
        startService(intent);
    }
}
